import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './action'
import getters from './getters'

Vue.use(Vuex)

const state = { //全局state
	appId:"",
	appKey:"",
	token:""
}

export default new Vuex.Store({
	strict: true, //此参数设置为true后不能直接state.token=xxx赋值，只能通过commit方式赋值
	state,
	getters,
	actions,
	mutations,
});